﻿<cfsilent>
	<cfscript>

		datetimeAdvice = getProperty("serviceFactory").getBean("datetimeAdvice");
		
		event.setArg("pageTitle", "教学质量评价 - 评教设置");

		currentTab = event.getArg("TabID", "labSetting");

		/* 网上评教相关设置 */
		stuDateStart = event.getArg("EVALSYS.STU.DateStart");
		stuDateEnd = event.getArg("EVALSYS.STU.DateEnd");
		stuMarkView = event.getArg("EVALSYS.STU.DisableMarkView");

		if ( stuDateStart eq "" ) {
			stuDateStart = dateFormat( now(), "YYYYMMDD" );
		}
		if ( stuDateEnd eq "" ) {
			stuDateEnd = dateFormat( dateAdd( "D", 14, now() ), "YYYYMMDD" );
		}
		if ( stuMarkView eq "" ) {
			stuMarkView = 1;
		}

		passArgs = structNew();

	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('DEFAULT_EVENT')#</cfoutput>"><i class="mrs img btnPublish"></i><span class="uiButtonText">教学质量评价</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 setting"></i>网上评教设置
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="summary">
				<div class="UItab">
					<div class="tabLables">
						<span <cfif currentTab eq "labSetting">class="active"</cfif> id="labSetting" tabTarget="Setting">评教设置</span>
					</div>
				</div>
				<script language="javascript" type="text/javascript">
					//<![CDATA[
					<!--
					$(document).ready(function() {
						
						/* init Tab */
						$("div.tabContent").hide();
						$("div#" + $("div.tabLables span.active").attr("tabTarget")).show();
						
						$("div.tabLables > span").click(function(){
							var $targetID = $(this).attr("tabTarget");
							
							$("div.tabLables span").removeClass("active");
							$(this).addClass("active");
							
							$("div.tabContent").not('[id="' + $targetID + '"]').hide();
							$("div.tabContent#" + $targetID).show();
						});
						
					});
					// -->
					//]]>				
				</script>
				
				<div id="Setting" class="tabContent">
				
					<div class="noticeBlock">
						<h3>网上评教时间段安排</h3>
						<hr/>
					</div>
					
					<form id="formEdit" onSubmit="javascript:return processVerfiyForm('formEdit');" class="formWrapper" method="post" action="<cfoutput>#buildURL('evaluateSettingSaveDo')#</cfoutput>">
						
						<div class="label">
							<span class="req">*</span><b>学生评教时间段</b>
							
							<input name="StuDateStart" id="StuDateStart" type="text" class="typeDate" verification="date" maxlength="10" value="<cfoutput>#datetimeAdvice.formatDateString( stuDateStart )#</cfoutput>" /><span id="stuStartTrigger" class="btnCalendar"></span>
							&nbsp;&nbsp;
							至
							&nbsp;&nbsp;
							<input name="StuDateEnd" id="StuDateEnd" type="text" class="typeDate" verification="date" maxlength="10" value="<cfoutput>#datetimeAdvice.formatDateString( stuDateEnd )#</cfoutput>" /><span id="stuEndTrigger" class="btnCalendar"></span>
							
							<p class="notice">
								允许学生进行网上评教的时间段. 在此时间段之外, 不允许进行评教, 亦不做额外限制
							</p>
							
						</div>
						
						<div class="label">
							<b>强制性条件</b>
							<div class="secondRow">
								<table>
									<tr>
										<td><input type="checkbox" name="DisableMarkView" class="typeCheckbox" <cfif stuMarkView>checked="checked"</cfif> value="1" /> 未完成评教学生, 禁止查看当前学期成绩</td>
									</tr>
								</table>
							</div>
						</div>
						
						<div class="lable">
							<input class="button" type="submit" value="保存" />
							<input id="formReset" class="button1" type="reset" value="重设表格" />
						</div>
						
					</form>
					
					<script language="javascript" type="text/javascript">
						//<![CDATA[
						<!--
						$(document).ready(function() {
							
							$("#StuDateStart").mask("9999-99-99");
							$("#StuDateEnd").mask("9999-99-99");
							
							Calendar.setup({
									trigger    : "stuStartTrigger",
									inputField : "StuDateStart",
									animation  : false
									});
								
							Calendar.setup({
									trigger    : "stuEndTrigger",
									inputField : "StuDateEnd",
									animation  : false
									});

						});
						// -->
						//]]>
					</script>
					
				</div>
				
			</div>
		</li>
	</ul>
</div>